package user;

public abstract class User{
    protected String name;
    protected int useID;
    protected String role;
    public User(String name,int userID,String role){
        this.name=name;
        this.useID=userID;
        this.role=role;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getUseID() {
        return useID;
    }

    public void setUseID(int useID) {
        this.useID = useID;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }
    public abstract int display();

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", useID=" + useID +
                ", role='" + role + '\'' +
                '}';
    }
}
